<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<html:form action="/login">

	<h2><bean:message key="login.invite"/></h2>
	<br>
	<bean:message key="login.username"/>
    <html:text property="username"/>
    <bean:message key="login.password"/>
   	<html:password property="password"/>
    <html:messages id="msg" message="true" property="invalidUserName">
		<div class="alert alert-danger">
			<bean:write name="msg"/>
		</div>
	</html:messages>
	<html:messages id="msg" message="true" property="username">
		<div class="alert alert-danger">
			<bean:write name="msg"/>
		</div>
	</html:messages>
    <br/>
   	<html:messages id="msg" message="true" property="password">
		<div class="alert alert-danger">
			<bean:write name="msg"/>
		</div>
	</html:messages>
	<html:messages id="msg" message="true" property="wrongPassword">
		<div class="alert alert-danger">
			<bean:write name="msg"/>
		</div>
	</html:messages>
    <br/>
    
	<button type="submit" class="btn btn-success">
		<bean:message key="common.submit"/>
	</button>
</html:form>